package com.scgl.sheet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.sheet.mapper.ScglSheetMapper;
import com.scgl.sheet.domain.ScglSheet;
import com.scgl.sheet.service.IScglSheetService;

/**
 * 生产工单Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class ScglSheetServiceImpl implements IScglSheetService
{
    @Autowired
    private ScglSheetMapper scglSheetMapper;

    /**
     * 查询生产工单
     *
     * @param id 生产工单主键
     * @return 生产工单
     */
    @Override
    public ScglSheet selectScglSheetById(Long id)
    {
        return scglSheetMapper.selectScglSheetById(id);
    }

    /**
     * 查询生产工单列表
     *
     * @param scglSheet 生产工单
     * @return 生产工单
     */
    @Override
    public List<ScglSheet> selectScglSheetList(ScglSheet scglSheet)
    {
        return scglSheetMapper.selectScglSheetList(scglSheet);
    }

    /**
     * 新增生产工单
     *
     * @param scglSheet 生产工单
     * @return 结果
     */
    @Override
    public int insertScglSheet(ScglSheet scglSheet)
    {
        return scglSheetMapper.insertScglSheet(scglSheet);
    }

    /**
     * 修改生产工单
     *
     * @param scglSheet 生产工单
     * @return 结果
     */
    @Override
    public int updateScglSheet(ScglSheet scglSheet)
    {
        return scglSheetMapper.updateScglSheet(scglSheet);
    }

    /**
     * 批量删除生产工单
     *
     * @param ids 需要删除的生产工单主键
     * @return 结果
     */
    @Override
    public int deleteScglSheetByIds(Long[] ids)
    {
        return scglSheetMapper.deleteScglSheetByIds(ids);
    }

    /**
     * 删除生产工单信息
     *
     * @param id 生产工单主键
     * @return 结果
     */
    @Override
    public int deleteScglSheetById(Long id)
    {
        return scglSheetMapper.deleteScglSheetById(id);
    }


}
